<!--
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2020-02-06 11:16:23
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-05-22 16:36:47
--> 
{include file="public/header" /}
<div class="page">
        <form id="form" method="post" name="form1">
            <input type="hidden" name="id" value="{$id}" id="id"/>
            <input type="hidden" name="fuwuid" value="{$fuwuid}" id="fuwuid"/>
            <table class="ds-default-table">
                <tbody>
                <tr class="noborder">
                    <td class="required w120">{$Think.lang.fuwu_personal_status}:</td>
                    <td class="vatop rowform">
                        <select name="status" id="status">
                            <option {if $data.status==2} checked{/if} value="2">审核成功</option>
                            <option {if $data.status==3} checked{/if} value="3">审核失败</option>
                        </select>
                    </td>
                    <td class="vatop tips"></td>
                </tr>
                <tr class="noborder" id="wuliu_code" style="display: none;">
                    <td class="required w120">失败原因:</td>
                    <td class="vatop rowform">
                        <textarea id="verify_reason" name="fail">{$data.fail}</textarea>
                    </td>
                    <td class="vatop tips"></td>
                </tr>
                </tbody>
                <tfoot>
                <tr class="tfoot">
                    <td colspan="15" >
                        <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
                    </td>
                </tr>
                </tfoot>
            </table>
        </form>
    </div>
<script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
<link rel="stylesheet" href="{$Think.CHAT_SITE_URL}/css/chat.css">
<script>

    $(document).ready(function () {
        $("form").submit(function (e) {
            var status = $('#status').val();
            var no_content = $('#verify_reason').val();
            if(status==3 && no_content.replace(/\s+/g,"") == ''){
               layer.msg('请填写未通过理由');return false;
            }
            
                });
    });

    $(function() {
        $('#status').change(function() {
            //alert($(this).val());return false;
            if ($(this).val() == '2') {
                $('#wuliu_code').hide();
            } else {
                $('#wuliu_code').show();
            }
        });
    });

</script>
